package com.daybook.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daybook.mapper.AdminMapper;
import com.daybook.mapper.MemberMapper;
import com.daybook.pojo.Member;
import com.daybook.service.MemberService;
@Service
public class MemberServiceImpl implements MemberService {
	@Autowired
	private MemberMapper memberMapper;
	@Override
	public List<Member> selectAllMember() {
		
		return memberMapper.selectAllMember();
	}

	@Override
	public Member selectMemberByMid() {
		// TODO Auto-generated method stub
		return memberMapper.selectMemberByMid();
	}

	@Override
	public int updateMember(double money) {
		// TODO Auto-generated method stub
		return memberMapper.updateMember(money);
	}

	@Override
	public int updateMemberByUname(int uid, String uname) {
		// TODO Auto-generated method stub
		return memberMapper.updateMemberByUname(uid, uname);
	}

}
